home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(!dead && !almostdead && _root._xmouse > 50 && _root._xmouse < 540)
- {
- if(_root._xmouse < this._x)
- {
- dir = "left";
- }
- else if(_root._xmouse > this._x)
- {
- dir = "right";
- }
- else
- {
- dir = "none";
- }
- this._x = _root._xmouse;
- if(dir != prevdir)
- {
- if(dir == "none")
- {
- _root.man.gotoAndPlay("1");
- }
- else if(dir == "left")
- {
- _root.man.gotoAndPlay("left");
- }
- else if(dir == "right")
- {
- _root.man.gotoAndPlay("right");
- }
- prevdir = dir;
- }
- }
- }
-